package com.cms.admin.service.healthrecord.impl;

import com.cms.admin.mapper.GoodsDataStuffRemarkMapper;
import com.cms.admin.model.GoodsDataStuffRemark;
import com.cms.admin.model.GoodsDataStuffRemarkExt;
import com.cms.admin.service.healthrecord.GoodsDataStuffRemarkService;

import java.util.List;

public class GoodsDataStuffRemarkServiceImpl implements GoodsDataStuffRemarkService{

    private GoodsDataStuffRemarkMapper goodsDataStuffRemarkMapper;

    @Override
    public List<GoodsDataStuffRemark> queryGoodsDataStuffRemarkList(GoodsDataStuffRemarkExt example) {
        return goodsDataStuffRemarkMapper.selectBySelective(example);
    }

    @Override
    public GoodsDataStuffRemark queryGoodsDataStuffRemarkById(Long id) {
        return goodsDataStuffRemarkMapper.selectByPrimaryKey(id);
    }

    @Override
    public int deleteGoodsDataStuffRemark(Long recid) {
        return goodsDataStuffRemarkMapper.deleteByPrimaryKey(recid);
    }

    @Override
    public int addGoodsDataStuffRemark(GoodsDataStuffRemark record) {
        return goodsDataStuffRemarkMapper.insertSelectiveAndGetId(record);
    }

    @Override
    public int updateGoodsDataStuffRemark(GoodsDataStuffRemark record) {
        return goodsDataStuffRemarkMapper.updateByPrimaryKeySelective(record);
    }

    public GoodsDataStuffRemarkMapper getGoodsDataStuffRemarkMapper() {
        return goodsDataStuffRemarkMapper;
    }

    public void setGoodsDataStuffRemarkMapper(GoodsDataStuffRemarkMapper goodsDataStuffRemarkMapper) {
        this.goodsDataStuffRemarkMapper = goodsDataStuffRemarkMapper;
    }
}
